<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>

    <style>
        #newby{
            width: 500px;
            height: 500px;
            border-right: 1px solid red;
        }
    </style>
</head>
<body>

mouse: <span id="sss">  </span>
<div id="newby">
    在这里移动试试
</div>

<script>
    $(function () {
        $('#newby').mousemove(
            function (e) {
                $('#sss').text("x:"+e.pageX+"y:"+e.pageY)

            }
        )
    })
</script>
</body>
</html>